home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / ex8-1.c < prev    next >
C/C++ Source or Header  |  1990-05-15  |  403b  |  15 lines

  1. // ex8-1.c -- Description of a Patient object
  2.  
  3. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/ex8-1.c,v 3.0 90/05/15 22:45:53 kgorlen Rel $
  4.  
  5. #include "Patient.h"
  6.  
  7. main()
  8. {
  9.     Patient aPatient("Doe, John","000-00-0000",12345);
  10.  
  11.     cout << "Class[" << aPatient.className() << "] "
  12.          << "ByteSize[" << sizeof(aPatient) << "]" << endl;
  13.     aPatient.dumpOn(cout);
  14. }
  15.